import java.util.Iterator;

public class ConcreteMediator extends Mediator{
    @Override
    public void operation(String message) {
        Iterator<Colleague> iteratorOfColleagues = colleagues.iterator();
        Colleague colleague;
        while(iteratorOfColleagues.hasNext()){
            colleague = iteratorOfColleagues.next();
            colleague.stringProcess(message);
        }
    }
}
